<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
    <meta name="keywords" content="{$SEO['keyword']}">
    <meta name="description" content="{$SEO['description']}">
    <script src="/statics/fals/js/jquery.js"></script>
    <script src="/statics/fals/js/rem.js"></script>
    <link rel="stylesheet" href="/statics/fals/styles/base.css" />
    <link rel="stylesheet" href="/statics/fals/styles/fals_detail.css" />
  </head>
  <body>
  {pc:get sql="select domain from dgg_site where siteid=1 " num="1" dbsource="zizhipc" }
  {php $home = $data?$data[0]['domain']:'';unset($data);}
  {php $content = str_replace('src="/uploadfile', 'src="'.$home.'uploadfile', $content);}
  {/pc}
  {if strlen(trim($relation))>0}
  {php $relations = explode('|',trim($relation,'|'));}
  {php $relations = array_diff($relations, array(null));}
  {php $relations = implode(',',$relations);}
  {php $sql = " `id` IN ($relations)";}
  {pc:get sql="select * from dgg_cases where $sql and status=99 order by id DESC "  num="4" dbsource="zizhipc" }
  {php $records = $data;}
  {php $cases= implode(', ', array_column($records, 'title'));}
  {/if}
    <div class="fals_detail_container">
      <div class="fals_title">
        <a href="javascript:history.go(-1);"><img src="https://cdn.shupian.cn/sp-pt/wap/9uclk0zujeg0000.png" alt="顶呱呱" class="back" /></a>
        方案老师详情
      </div>
      <div class="main">
        <div class="author_info">
          <img src="https://cdn.shupian.cn/sp/cms/2y9jrkblz0o0000.png" alt="" class="avator" />
          <div class="author_right">
            <div class="name">{$title}</div>
            <div class="tag">
              {php $tags=explode(',',$tags);}
              {loop $tags $tag}
              <div class="tag_item">{$tag}</div>
              {/loop}
            </div>
            <div class="desc">{$short}）</div>
          </div>
        </div>
        <div class="floor">
          <h6 class="subtitle">从业年限</h6>
          <div class="floor_content">{$years}年</div>
        </div>
        <div class="floor">
          <h6 class="subtitle">成功案例</h6>
          <div class="floor_content">{$cases??'-'}</div>
        </div>
        <div class="floor">
          <h6 class="subtitle">个人简介</h6>
          <div class="floor_content">
            {$description}
          </div>
        </div>
        <div class="floor">
          <h6 class="subtitle">相关客户案例</h6>
          <div class="floor_list">
            {loop $records $r}
            {if $r['thumb'] && $home}
            {php $thumb_id=$r['thumb'];}
            {pc:get sql="select b.filepath from dgg_attachment b where aid = $thumb_id" num=1 dbsource="zizhipc" }
            {php $thumb=$data? $home.'uploadfile/'.$data[0]['filepath']:'';}
            {php unset($data);}
            {/if}
            <a href="{$r['url']}" class="floor_item">
              <img src="{if !empty($thumb) } {$thumb} {/if}" alt="" class="img" />
              <div class="img-mask">
                <img src="{if !empty($thumb) } {$thumb} {/if}" alt="" />
              </div>
              <div class="content">
                <div class="title">{$r['title']??''}</div>
                <div class="desc">{$r['description']??''}</div>
              </div>
            </a>
            {/loop}
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
